package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntegralVo;
import cn.wolfcode.feign.fallback.IntegralFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "intergral-service",fallback = IntegralFeignFallBack.class)
public interface IntegralFeignApi {

    @RequestMapping("/integral/decrIntegral")    // 减积分
    Result<String> decrIntegral(@RequestBody OperateIntegralVo operateIntegralVo);

    @RequestMapping("/integral/incrIntegral")    // 加积分
    Result<String> incrIntegral(@RequestBody OperateIntegralVo operateIntegralVo);
}
